package com.ruoyi.WELD.service.impl;

import com.ruoyi.WELD.domain.DataStation;
import com.ruoyi.WELD.domain.Welding;
import com.ruoyi.WELD.mapper.DataStationMapper;
import com.ruoyi.WELD.service.IDataStationService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.validation.Validator;
import java.util.List;

@Service
public class DataStationServiceImpl implements IDataStationService {
    private static final Logger log = LoggerFactory.getLogger(DataStationServiceImpl.class);

    @Autowired
    private DataStationMapper dataStationMapper;

    @Autowired
    protected Validator validator;

    @Override
    public List<DataStation> selectDataStationList(DataStation dataStation) {
        return dataStationMapper.selectDataStationList(dataStation);
    }

    @Override
    public DataStation selectDataStationById(Long id) {
        return dataStationMapper.selectDataStationById(id);
    }

    @Override
    public List<DataStation> selectDataStationByIds(Long[] ids) {
        return dataStationMapper.selectDataStationByIds(ids);
    }

    @Override
    public int insertDataStation(Welding welding) {
        return dataStationMapper.insertDataStation(welding);
    }

    @Override
    public int deleteDataStationById(Long id) {
        return dataStationMapper.deleteDataStationById(id);
    }

    @Override
    public int deleteDataStationByIds(Long[] ids) {
        return dataStationMapper.deleteDataStationByIds(ids);
    }

    @Override
    public int ClearDataStation() {return dataStationMapper.ClearDataStation();}


}
